-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake changes to allow building without lusol #168
Conversation
option(RESOLVE_TEST_WITH_BSUB | ||
"Use `jsrun` instead of `mpirun` commands when running tests" OFF) | ||
option(RESOLVE_USE_KLU "Use KLU, AMD and COLAMD libraries from SuiteSparse" ON) | ||
option(RESOLVE_USE_LUSOL "Build the LUSOL library" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Off by default...
if(RESOLVE_USE_LUSOL) | ||
add_executable(runLUSOLTests.exe runLUSOLTests.cpp) | ||
target_link_libraries(runLUSOLTests.exe PRIVATE ReSolve resolve_matrix) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes needed in testing to disable LUSOL...
set(installable_tests runMatrixIoTests.exe runMatrixHandlerTests.exe | ||
runMatrixFactorizationTests.exe) | ||
if(RESOLVE_USE_LUSOL) | ||
list(APPEND installable_tests runLUSOLTests.exe) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
if(RESOLVE_USE_LUSOL) | ||
add_test(NAME lusol_test COMMAND $<TARGET_FILE:runLUSOLTests.exe>) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
Please do. Otherwise this is good to merge. Thank you! |
I believe we can close this PR because this issue was addressed in #118. Feel free to reopen, if needed. |
My editor screwed with formatting. I can force push to this PR with minimal changes once I disable CMake formatting in my editor...